#include <stdio.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/wait.h>

int miredo_start()
{
  pid_t miredopid;
  
  miredopid = fork();

  if( miredopid == 0 )
    {
      execlp( "miredo", "miredo", NULL );
    }
  else
    {
      waitpid( miredopid , NULL, 0);
      return(0);
    }
  return(-1);
}
